const AddressModel = require("../../models/addressModel");

!(async () => {
  const res1 = await AddressModel.create({
    username: "zhangsan",
    city: "hangzhou",
    department: "xxx小区xxx",
    houseNumber: "100-105",
    name: "gaoxiao",
    phone: "1390000000",
  });
  const res2 = await AddressModel.create({
    username: "zhangsan",
    city: "hangzhou",
    department: "xxx小区yyy",
    houseNumber: "100-106",
    name: "gaoxiao",
    phone: "1390000000",
  });
  // const res = await AddressModel.findOneAndUpdate(
  //   {
  //     _id: "68e91b8750242a861794fa36",
  //   },
  //   {
  //     city: "nanjing",
  //     name: "kaiguan",
  //   },
  //   { new: true }
  // );
  // console.log("addressupdate", res);
})();
